<?php
/**
 * 积分
 */

namespace app\frontend\controllers\points;


use App\common\components\BaseController;

class PointsController extends BaseController
{

    public function index()
    {
        $data = [];
        return successJson('ok', $data);
    }


    /**
     * 积分首页接口
     *
     * @return \Illuminate\Http\JsonResponse
     */
    public function pointsHomePage()
    {

        $pluginId = request()->input('platform_id', 0);

        //获取数据
        $data = self::getData('Points', 'pointsHomePage');

        return successJson('ok', $data);
    }

    /**
     * 积分兑换商品列表
     *
     * @return \Illuminate\Http\JsonResponse
     */
    public function pointsGoodsLists()
    {

        $pluginId = request()->input('platform_id', 0);

        //获取数据
        $data = self::getData('Points', 'pointsGoodsLists');

        return successJson('ok', $data);
    }


}

